public class Shape {

    public void Shape(int a,int b,int c){
        int flay = 3;//假设他不构成三角形


        if ((a * a) + (b * b) == (c * c)){
            flay = 0;
        }
        if (a == b || a == c || b == c){
            flay = 1;
        }
        if (a == b && a == c && b == c){
            flay = 2;
        }

        switch (flay){
            case 0:
                System.out.println("这是一个直角三角形");
                break;
            case 1:
                System.out.println("这是一个等腰三角形");
                break;
            case 2:
                System.out.println("这是一个等边三角形");
                break;
            default:
                System.out.println("不构成三角形");
        }
    }
}
